package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运动数据对象 t_sport_data
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class TSportData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 运动数据ID */
    private Long sportId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 运动类型id */
    @Excel(name = "运动类型id")
    private Long sportTypeId;

    /** 起始位置 */
    @Excel(name = "起始位置")
    private String startPosition;

    /** 结束位置 */
    @Excel(name = "结束位置")
    private String endPosition;

    /** 运动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "运动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 运动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "运动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 消耗卡路里 */
    @Excel(name = "消耗卡路里")
    private Long calorie;

    /** 运动距离 */
    @Excel(name = "运动距离")
    private Long exerciseDistance;

    /** 心率 */
    @Excel(name = "心率")
    private Long heartRate;

    /** 删除标识,未删除为0，已删除为1 */
    @Excel(name = "删除标识,未删除为0，已删除为1")
    private Long deleteFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    public void setSportId(Long sportId) 
    {
        this.sportId = sportId;
    }

    public Long getSportId() 
    {
        return sportId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSportTypeId(Long sportTypeId) 
    {
        this.sportTypeId = sportTypeId;
    }

    public Long getSportTypeId() 
    {
        return sportTypeId;
    }

    public void setStartPosition(String startPosition) 
    {
        this.startPosition = startPosition;
    }

    public String getStartPosition() 
    {
        return startPosition;
    }

    public void setEndPosition(String endPosition) 
    {
        this.endPosition = endPosition;
    }

    public String getEndPosition() 
    {
        return endPosition;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setCalorie(Long calorie) 
    {
        this.calorie = calorie;
    }

    public Long getCalorie() 
    {
        return calorie;
    }

    public void setExerciseDistance(Long exerciseDistance) 
    {
        this.exerciseDistance = exerciseDistance;
    }

    public Long getExerciseDistance() 
    {
        return exerciseDistance;
    }

    public void setHeartRate(Long heartRate) 
    {
        this.heartRate = heartRate;
    }

    public Long getHeartRate() 
    {
        return heartRate;
    }

    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }

    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sportId", getSportId())
            .append("userId", getUserId())
            .append("sportTypeId", getSportTypeId())
            .append("startPosition", getStartPosition())
            .append("endPosition", getEndPosition())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("calorie", getCalorie())
            .append("exerciseDistance", getExerciseDistance())
            .append("heartRate", getHeartRate())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("deleteFlag", getDeleteFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("version", getVersion())
            .toString();
    }
}
